﻿<?php
	//获得参数
	$id_role = $_POST["id_role"];
	$type_role = $_POST["type_role"];
	$content = $_POST["content_reply"];
	$id_comment = $_POST["id_board"];
	//添加留言
	include("../class/message_reply.class.php");
	$class_reply = new Message_Reply();
	$id_reply = $class_reply->AddReply($id_comment,$type_role,$id_role,$content);
	$str = $class_reply->ShowOneReplyById($id_reply);
	echo json_encode(array('status'=>1,'html'=>$str,'id_comment'=>$id_comment));
?>